package com.anti.modular.owner.ownerleaseroom.service;

import com.anti.jdbc.support.page.PageParam;
import com.anti.jdbc.support.page.PageResult;
import com.anti.modular.owner.ownerlease.param.OwerRoom;
import com.anti.modular.owner.ownerleaseroom.entity.OwnerLeaseRoom;
import com.anti.modular.owner.ownerleaseroom.param.OwnerLeaseRoomParam;

import java.util.List;

/**
 * 業主房間關係表service接口
 *
 * @author anti
 * @date 2021-05-20 14:28:47
 */
public interface OwnerLeaseRoomService{

    /**
    * 根据主键查询实体
    */
    OwnerLeaseRoom getById(OwnerLeaseRoomParam ownerLeaseRoomParam);

    /**
     * 查询業主房間關係表
     *
     * @author anti
     * @date 2021-05-20 14:28:47
     */
    PageResult page(PageParam pageParam,OwnerLeaseRoomParam ownerLeaseRoomParam);

    /**
     * 業主房間關係表列表
     *
     * @author anti
     * @date 2021-05-20 14:28:47
     */
    List<OwnerLeaseRoom> list(OwnerLeaseRoomParam ownerLeaseRoomParam);

    List<OwnerLeaseRoom> getRoomNamesByOwnerId(Long leaseId);

    /**
     * 添加業主房間關係表
     *
     * @author anti
     * @date 2021-05-20 14:28:47
     */
    void add(OwnerLeaseRoomParam ownerLeaseRoomParam);

    void addByList(List<OwerRoom> owerRooms,Long ownerLeaseId);

    /**
     * 删除業主房間關係表
     *
     * @author anti
     * @date 2021-05-20 14:28:47
     */
    void delete(OwnerLeaseRoomParam ownerLeaseRoomParam);

    /**
     * 编辑業主房間關係表
     *
     * @author anti
     * @date 2021-05-20 14:28:47
     */
    void edit(OwnerLeaseRoomParam ownerLeaseRoomParam);

    /**
     * 查看業主房間關係表
     *
     * @author anti
     * @date 2021-05-20 14:28:47
     */
     OwnerLeaseRoom detail(OwnerLeaseRoomParam ownerLeaseRoomParam);

}
